package com.ruoyi.system.api.permission;

import com.ruoyi.common.core.core.domain.R;
import com.ruoyi.system.service.ISysRoleService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.Collection;

@Service
public class RoleApiImpl implements RoleApi {

    @Resource
    private ISysRoleService roleService;

    @Override
    public R<Boolean> validRoleList(Collection<Long> ids) {
        roleService.validateRoleList(ids);
        return R.ok(true);
    }
}
